package cn.edu.nhic.nhcarsb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class News {
    @TableId(type = IdType.AUTO)
    private int nid;
    private String ntitle;
    private String ncontent;
    private String ndesc;
    private String nfrom;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ndate;
    private int nhit;
    private int naid;

}
